package com.alkaid.user.service;

import com.alkaid.commons.ex.SmsSendErrorException;
import com.alkaid.commons.ex.UserNotFoundException;

/**
 * @author Kylin
 * 验证码发送
 */
public interface SmsService {
    /**
     * 发送验证码
     * @param mobile 手机号
     * @param type 验证码类型（reg-注册；login-登录；forget-忘记密码）
     * @throws UserNotFoundException 账号不存在
     * @throws SmsSendErrorException 验证码发送失败
     */
    void sendSmsCode(String mobile, String type) throws UserNotFoundException, SmsSendErrorException;
}
